home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1116 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: irisa.fr!usenet
  2. From: gmoreau@photon.irisa.fr (Guillaume Moreau)
  3. Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
  4. Subject: Re: malloc'ing 1.5MB of memory
  5. Date: 11 Jan 1996 15:50:20 GMT
  6. Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE
  7. Distribution: world
  8. Message-ID: <GMOREAU.96Jan11165020@photon.irisa.fr>
  9. References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
  10.     <4d37ta$4d2@stc06.ctd.ornl.gov>
  11. NNTP-Posting-Host: photon.irisa.fr
  12. In-reply-to: forrest@esdhof.esd.ornl.gov's message of 11 Jan 1996 14:47:06 GMT
  13.  
  14. In article <4d37ta$4d2@stc06.ctd.ornl.gov> forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) writes:
  15.  
  16.  
  17.    |> Try to use the XMS interface (Himem) and disable MS C's heap. With the XMS
  18.    |> interface you're able to allocate up to 15MB.
  19.    |> 
  20.    |> Herman
  21.    |> 
  22.  
  23.    Herman:
  24.  
  25.    Thanks for the suggestion.  This sounds like what I need to do, but how
  26.    do I use XMS?  I cannot find any reference to it.  Is it another
  27.    library?  Do I get it from Chairman Gates?
  28.  
  29. Nope. What you have to do is use  DOS services, ie make an int86() call. I 
  30. don't remember which interrupt is used by XMS, but I can send you some
  31. sources with XMS access functions. Just send me a mail. You first have
  32. to check that a XMS driver is present, then you can alloc a memory
  33. block. Note that there is no direct access to this block (with a pointer), you
  34. are provided copy functions from/to low memory to/from Xms blocks.
  35. Another solution is to use a Dos extender (Phar Lap w/ MsC or djgpp).
  36.  
  37.  
  38.  
  39.    One other thing:  I still need networking and things to work correctly.
  40.    I'm trying to write directly onto an NFS-mounted disk from this program.
  41.    I'm using FTP's OnNet TCP/IP stack.
  42.  
  43. and, what is not working?
  44.  
  45.  
  46.    Also, how do I disable MS C's heap after finding out about XMS?
  47.  
  48. you don't need to, IMHO.
  49.  
  50.  
  51. Guillaume
  52.  
  53.  
  54.  
  55. -- 
  56. -----------------------------------------------------------------------
  57. Guillaume Moreau                              Guillaume.Moreau@irisa.fr
  58. IRISA, projet Siames                    ENS Cachan, antenne de Bretagne
  59. Campus de Beaulieu                                   Campus de Ker Lann
  60. 35042 Rennes Cedex                                           35170 Bruz
  61. Tel: 99.84.74.18                                       Tel: 99.05.93.00
  62. Fax: 99.84.71.71                                       Fax: 99.05.93.29
  63.  
  64. "If we knew what we were doing, we wouldn't call it research, would we?"
  65.                                                          A. Einstein
  66. -----------------------------------------------------------------------
  67.